package dvdstore.client.gui;

import javax.swing.BorderFactory;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JSplitPane;
import javax.swing.SwingUtilities;

import dvdstore.client.gui.search.DVDSearchFieldsPanel;

public class ClientGUI extends JFrame{
	
	public ClientGUI() {
	        
       setTitle("Simple example");
       setSize(800, 600);
       setDefaultCloseOperation(EXIT_ON_CLOSE);    
       
       JPanel up = new DVDSearchFieldsPanel();
       JPanel down = new JPanel();
       JSplitPane master = new JSplitPane(JSplitPane.VERTICAL_SPLIT, up, down);
       
       down.add(new JButton("down"));
       
       down.setBorder(BorderFactory.createTitledBorder("titulo2"));
       master.setOrientation(JSplitPane.VERTICAL_SPLIT );
       
       getContentPane().add(master);
       
    }
    

    public static void main(String[] args) {
        
        SwingUtilities.invokeLater(new Runnable() {
            @Override
            public void run() {
            	ClientGUI gui = new ClientGUI();
            	gui.setVisible(true);
            }
        });
    }
	
}
